﻿<UserControl x:Class="SilverlightLayouts.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sl="clr-namespace:SilverlightLayouts.Layouts"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <sl:HeaderFreezeLayout x:Name="HeaderFreeze"
                           HeaderHeight="50" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

        <sl:HeaderFreezeLayout.HeaderContent>

            <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderThickness="2" BorderBrush="Green">
                <Border.Background>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                        <GradientStop Color="Silver" Offset="0" />
                        <GradientStop Color="Yellow" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
            </Border>

        </sl:HeaderFreezeLayout.HeaderContent>

        <sl:HeaderFreezeLayout.ScrollContent>

            <Border Width="3000" Height="2000">
                <Border.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                        <GradientStop Color="White" Offset="0" />
                        <GradientStop Color="Black" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
            </Border>

        </sl:HeaderFreezeLayout.ScrollContent>

    </sl:HeaderFreezeLayout>
    
</UserControl>
